#!/bin/sh
#
#  Migrate Repository To Target 
#


siebelRoot=/app/siebel/siebsrvr
currentDate=$(date +%Y%m%d)

# Load Env Var
cd $siebelRoot
. $siebelRoot/siebenv.sh

# Backup customer.dat file
cp ../dbsrvr/oracle/customer.dat  ../dbsrvr/oracle/customer_${currentDate}.dat

# Execute Migrate Process
cd $siebelRoot/bin
srvrupwiz /m master_exprep.ucf <<EOF
Y
EOF